package mianyang.zhangsan.com.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import mianyang.zhangsan.com.pojo.Room;
import mianyang.zhangsan.com.pojo.RoomType;

import java.util.List;

public interface RoomTypeService {
    Page<RoomType> queryPages(int pageNo);

    List<RoomType> queryAll();

    RoomType queryRoomTypeInfo(int roomType);

    RoomType queryRoomTypeInfo(String roomTypeName);

    Page<RoomType> queryPageByWrapper(Integer page, Integer rows, RoomType roomType);

    void addRoomType(RoomType roomType);

    void delete(int roomTypeId);

    void deletes(String roomTypeIds);

    void update(int roomTypeId, RoomType roomType);

    List<RoomType> queryListByWrapper(RoomType roomType);

    QueryWrapper<RoomType> queryWrapper(RoomType roomType);
}
